home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / daemons / nfs / nfs-serv.2be / nfs-serv / nfs-server-2.2beta16 / logging.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-06  |  1.1 KB  |  42 lines

  1. /*
  2.  * logging.h    Definitions for the logging functions.
  3.  *
  4.  * Authors:    Donald J. Becker, <becker@super.org>
  5.  *        Rick Sladkey, <jrs@world.std.com>
  6.  *        Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
  7.  *
  8.  *        This software maybe be used for any purpose provided
  9.  *        the above copyright notice is retained.  It is supplied
  10.  *        as is, with no warranty expressed or implied.
  11.  */
  12.  
  13. #ifndef LOGGING_H
  14. #define LOGGING_H
  15.  
  16. /* Logging/Debug levels */
  17. #define L_ERROR        0x0001
  18. #define L_WARNING    0x0002
  19. #define L_NOTICE    0x0004
  20. #define L_FATAL        0x0008
  21. #define D_GENERAL    0x0100
  22. #define D_CALL        0x0200
  23. #define D_FHCACHE    0x0400
  24. #define D_AUTH        0x0800
  25. #define D_UGID        0x1000
  26. #define D_RMTAB        0x2000
  27. #define D_FHTRACE    0x4000
  28.  
  29. /* Global Function prototypes. */
  30. extern _PRO( void log_open, (char *progname, int foreground)        );
  31. extern _PRO( void enable_logging, (char *kind)                );
  32. extern _PRO( int  logging_enabled, (int level)                );
  33. extern _PRO( void toggle_logging, (int sig)                );
  34. extern _PRO( void dprintf, (int level, const char *fmt, ...)        );
  35. extern _PRO( void log_call, (struct svc_req *rqstp, char *name,        \
  36.                 char *arg)                    );
  37.  
  38.  
  39. #endif /* LOGGING_H */
  40.  
  41. /* End of logging.h. */
  42.